Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for psr/http-message 2.x #56

Merged
merged 1 commit into from
Jul 7, 2024

Conversation

flavioheleno
Copy link
Contributor

@flavioheleno flavioheleno commented Jul 6, 2024

@@ -43,7 +42,7 @@ public function allowCache(
}
$headerValue = $type;
if ($maxAge || is_integer($maxAge)) {
if (!is_integer($maxAge) && !is_null($maxAge)) {
if (!is_integer($maxAge) && $maxAge !== null) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this line relevant for the new version?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if not changed, the static analysis (performed by composer test) fails

@odan odan merged commit 7932a96 into slimphp:1.x Jul 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants